package com.twt.recruit.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.twt.recruit.utils.CustomRoleConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @author amorfati on 2024/02/01.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClubMember {

	/**
 	* 社团成员主键
 	*/
	@TableId(type = IdType.AUTO)
	private Integer clubMemberId;
	/**
 	* 社团主键
 	*/
	private Integer clubId;
	/**
 	* 学号
 	*/
	@ExcelProperty(value = "学号")
	private String uid;
	/**
 	* 权限
 	*/
	@ExcelProperty(value = "权限", converter = CustomRoleConverter.class)
	private String role;
	private Timestamp createdTime;
	private Timestamp updatedTime;

}
